package springsource.documentation.framework._1_3_1;

import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Sandbox {

    static {
        LogFactory.getLog(Sandbox.class).trace(
                "if you see this, then TRACE level logging is enabled...");
    }

    public static void main(String[] args) {
        // create and configure beans
        ApplicationContext context = new ClassPathXmlApplicationContext(
                new String[] { "beans.xml" });

        // retrieve configured instance
        MyBean myBean = context.getBean("myBean", MyBean.class);

        // use configured instance
        myBean.doSomething();
    }

}
